package com.acme;

public class AppClient {

    public static void main(final String[] args) throws NoSuchMethodException,
	    SecurityException, Throwable {
	ClientDao clientDao = new ClientDaoImpl();
	Client client = new Client();
	// without proxy
	clientDao.add(client);

	ClientDao proxy = (ClientDao) TransactionManager
		.applyTransactionDemarcation(clientDao);
	// with proxy
	proxy.add(client);

    }

}
